package com.twu.biblioteca.actions;

import com.twu.biblioteca.controllers.BookController;

public class ViewBooks implements Action {
    private BookController bookController;

    public ViewBooks(BookController bookController) {
        this.bookController = bookController;
    }

    @Override
    public String displayName() {
        return "View all books";
    }

    @Override
    public void perform() {
        System.out.println(bookController.listBooks());
    }
}
